import request from '@/utils/request'
// 获取排课接口
export function courseTimetablePage(data) {
  return request({
    url: '/course/timetable/page',
    method: 'get',
    params: data
  })
}
export function courseTimetableUpdate(data) {
  return request({
    url: '/course/timetable/add',
    method: 'post',
    data
  })
}
export function courseTimetableDelete(data) {
  return request({
    url: '/course/timetable/del',
    method: 'get',
    params: data
  })
}
export function coursePage(data) {
  return request({
    url: '/course/course/page',
    method: 'get',
    params: data
  })
}
export function courseUpdate(data) {
  return request({
    url: '/course/course/add',
    method: 'post',
    data
  })
}
export function courseDelete(data) {
  return request({
    url: '/course/course/del',
    method: 'get',
    params: data
  })
}
export function timeTableUserPage(data) {
  return request({
    url: '/course/timetable-user/page',
    method: 'get',
    params: data
  })
}
export function timeTableUserDelete(data) {
  return request({
    url: '/course/timetable-user/del',
    method: 'get',
    params: data
  })
}
// 调入学生接口
export function schoolUserList(data) {
  return request({
    url: '/school/school-class/school-user-list',
    method: 'get',
    params: data
  })
}
// 初始化课程用户
export function timetableUsreInit(data) {
  return request({
    url: '/course/timetable-user/init-user',
    method: 'post',
    params: data
  })
}
export function timetableUsreIn(data) {
  return request({
    url: '/course/timetable-user/user-in',
    method: 'post',
    params: data
  })
}
export function timetableUsreOut(data) {
  return request({
    url: '/course/timetable-user/user-out',
    method: 'post',
    params: data
  })
}

// 初始化考勤
export function timetableKaoqinInit(data) {
  return request({
    url: '/course/timetable-kaoqin/init',
    method: 'get',
    params: data
  })
}

// 初始化考勤
export function timetableKaoqinPage(data) {
  return request({
    url: '/course/timetable-kaoqin/page',
    method: 'get',
    params: data
  })
}

// 初始化考勤
export function timetableKaoqinUpdateInfo(data) {
  return request({
    url: '/course/timetable-kaoqin/update-kaoqin-info',
    method: 'get',
    params: data
  })
}
export function timetableUserGroupIn(data) {
  return request({
    url: '/course/timetable-user/group-in',
    method: 'get',
    params: data
  })
}
export function timetableUserGroupOut(data) {
  return request({
    url: '/course/timetable-user/group-out',
    method: 'get',
    params: data
  })
}
export function setGroupManage(data) {
  return request({
    url: '/course/timetable-user/is-group-manage',
    method: 'get',
    params: data
  })
}

export function kejianPage(data) {
  return request({
    url: '/course/timetable-file/page',
    method: 'get',
    params: data
  })
}
export function kejianUpdate(data) {
  return request({
    url: '/course/timetable-file/add',
    method: 'post',
    data
  })
}
export function kejianDelete(data) {
  return request({
    url: '/course/timetable-file/del',
    method: 'get',
    params: data
  })
}
export function groupPublish(data) {
  return request({
    url: '/course/timetable/is-group-open',
    method: 'get',
    params: data
  })
}

// 获取课表的座位信息详情
export function courseTimetableSeatInfo(data) {
  return request({
    url: '/course/timetable/seat-info',
    method: 'get',
    params: data
  })
}
// 给座位分配人员
export function courseTimetableUserAdd(data) {
  return request({
    url: '/course/timetable-user/add',
    method: 'post',
    data
  })
}

// 考核
export function kaohePage(data) {
  return request({
    url: '/course/timetable-kaohe/page',
    method: 'get',
    params: data
  })
}

// 考核
export function kaoheUpdate(data) {
  return request({
    url: '/course/timetable-kaohe/add',
    method: 'post',
    data
  })
}

// 考核
export function kaoheDelete(data) {
  return request({
    url: '/course/timetable-kaohe/del',
    method: 'get',
    params: data
  })
}

// 考核
export function kaoheInit(data) {
  return request({
    url: '/course/timetable-kaohe/init',
    method: 'get',
    params: data
  })
}

// 评估
export function kaoheUserUpdate(data) {
  return request({
    url: '/course/timetable-kaohe-user/add',
    method: 'post',
    data
  })
}

// 评估
export function pingguPage(data) {
  return request({
    url: '/course/timetable-pinggu/page',
    method: 'get',
    params: data
  })
}

// 评估
export function pingguUpdate(data) {
  return request({
    url: '/course/timetable-pinggu/add',
    method: 'post',
    data
  })
}

// 评估
export function pingguDelete(data) {
  return request({
    url: '/course/timetable-pinggu/del',
    method: 'get',
    params: data
  })
}

